package demo01;

class Animal {
    public void run() {
        System.out.println("Animal:run");
    }
}

class Cat extends Animal {
    public void run() {
        System.out.println("Cat:run");
    }

    public void TestRun() {
        this.run();
        super.run();
    }
}

public class ExtendDemo07 {
    public static void main(String[] args) {
        Animal animal = new Animal();
        animal.run();
        Cat cat = new Cat();
        cat.TestRun();
    }
}
